<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bootstrap悬停提示与点击提示</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
</head>
<style>
    main {
        margin: 1%;
        padding: 1%;
    }
</style>

<body>

    <main>
        <div class="row">
            <div class="col-6">
                <button class="btn btn-secondary" data-toggle="tooltip" title="提示" data-placement="right">悬停提示</button>
            </div>
            <div class="col-6">
                <button class="btn btn-secondary" data-toggle="popover" title="点击提示" data-content="提示文本" data-placement="right">点击提示</button>
            </div>
            

            
        </div>
        
    </main>


    <script src="../js/jquery.min.js"></script>
    <script src="../js/bootstrap.bundle.min.js"></script>
    <script>
        $('[data-toggle = "tooltip"]').tooltip();
        $('[data-toggle = "popover"]').popover();
    </script>
</body>

</html>